<template>
	<div class="container">
		<div class="jx-return-container">
      <i class="iconfont icon-back" @click="back"></i><span class="cube-title">机构详情</span>
    </div>
    <div class="jx-detail">
      <div class="detail-item">
        <div class="item_2 item">
          <div class="title">
            基本信息
          </div>
          <div class="list">
            <span>注册时间：</span>
            <div class="right">
              <span>{{detail.registerAt || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>机构名称：</span>
            <div class="right">
              <span>{{detail.institutionName || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>机构类型：</span>
            <div class="right">
              <span>{{detail.institutionCatalog || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>所在地区：</span>
            <div class="right">
              <span>{{detail.institutionProvinceCity || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>公司地址：</span>
            <div class="right">
              <span>{{detail.institutionAddress || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>登录账号：</span>
            <div class="right">
              <span>{{detail.institutionLoginname || '--'}}</span>
            </div>
          </div>
        </div>
        <div class="item_2 item">
          <div class="title">实体店信息</div>
          <div class="list">
            <span>企业logo：</span>
            <div class="right">
              <img class="logo" :src="detail.institutionLogoImgUrl"/>
            </div>
          </div>
        </div>
      </div>
      <div class="detail-item">
        <div class="item_2 item">
          <div class="title">
            实名认证信息
          </div>
          <div class="list">
            <span>姓名：</span>
            <div class="right">
              <span>{{detail.managerRealname || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>身份证号码：</span>
            <div class="right">
              <span>{{detail.managerIdCard || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>身份证图片：</span>
            <div class="right">
              <img class="pic" :src="detail.managerIdCardFrontImgUrl"/> 
              <img class="pic" :src="detail.managerIdCardBackImgUrl"/> 
            </div>
          </div>
        </div>
        <div class="item_2 item">
          <div class="title">企业资质证明</div>
          <div class="list">
            <span>企业名称：</span>
            <div class="right">
              <span>{{detail.institutionLicenseName || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>营业执照编号：</span>
            <div class="right">
              <span>{{detail.institutionLicense || '--'}}</span>
            </div>
          </div>
          <div class="list">
            <span>营业执照图片：</span>
            <div class="right">
              <img class="pic" :src="detail.institutionLicenseFrontImgUrl"/> 
              <img class="pic" :src="detail.institutionLicenseBackImgUrl"/> 
            </div>
          </div>
          <div class="list">
            <span>企业资质证件：</span>
            <div class="right">
              <img class="pic" v-for="(item,index) in detail.institutionLicenseOtherImgUrls" :src="item"/> 
            </div>
          </div>
        </div>
      </div>
    </div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
        https: this.$api.merchant.sflist.detail,
        boo: {
          loading: false,
          saveing: false,
        },
        detail: '',
			}
		},
		mounted(){
      let _self = this
      _self.getDetail()
    },
		methods: {
      back(){
        history.go(-1)
      },
      getDetail(){
        let _self = this
        let params = {
          id: this.$route.query.id,
        }
        let success = (res)=>{
          res = res.data
          if(res.retCode == 1){
            _self.detail = res.retObject
          }else{
            _self.$message.error(res.retMsg)
          }
        }
        _self.$axios.get(`${_self.https}${params.id}`, {}, success) 
      },
      submitRow(){

      }
    }
	}

</script>
<style scoped lang="sass">
</style>
